From c2d8072343d96cbbc22bae10207da2712b9a2ce4 Mon Sep 17 00:00:00 2001
From: orbea <orbea@riseup.net>
Date: Thu, 28 May 2020 07:15:20 -0700
Subject: [PATCH] meson: Respect mandir.

---
 man/meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man/meson.build b/man/meson.build
index 7d00274c..63248309 100644
--- a/man/meson.build
+++ b/man/meson.build
@@ -7,6 +7,7 @@ if get_option('with_docs')
 		                        'picom-version='+version,
 		                        '--format', 'manpage', '@INPUT@', '-D',
 		                        meson.current_build_dir()],
-		              install: true, install_dir: 'share/man/man1/')
+		              install: true,
+		              install_dir: join_paths(get_option('mandir'), 'man1'))
 	endforeach
 endif
